import React from "react";
import Axios from "axios";

export default new (class Axiosunit {
    get(option){
        Axios.get(option.url)
        .then(function (response) {
            option.success(response);
        })
        .catch(function (error) {
            option.error(error);
        })
    }
})()